package com.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 被托管的公众号
 * @author Jason
 *
 */
@Entity
public class WxNumber {
	
	private Integer id;
	private String wxname;
	private String wxid;
	private String weixin;
	private String headpic;
	private String token;
	private String province;
	private String city;
	private String email;
	private String qqnum;
	private Integer wxfans;
	private String createTime;
	private String updateTime;
	
	private WxNumType wxType;
	
	private WxUser wxuser;

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getWxname() {
		return wxname;
	}

	public void setWxname(String wxname) {
		this.wxname = wxname;
	}

	public String getWxid() {
		return wxid;
	}

	public void setWxid(String wxid) {
		this.wxid = wxid;
	}

	public String getWeixin() {
		return weixin;
	}

	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}

	public String getHeadpic() {
		return headpic;
	}

	public void setHeadpic(String headpic) {
		this.headpic = headpic;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQqnum() {
		return qqnum;
	}

	public void setQqnum(String qqnum) {
		this.qqnum = qqnum;
	}

	public Integer getWxfans() {
		return wxfans;
	}

	public void setWxfans(Integer wxfans) {
		this.wxfans = wxfans;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	@ManyToOne
	@JoinColumn(name="typeid")
	public WxNumType getWxType() {
		return wxType;
	}

	public void setWxType(WxNumType wxType) {
		this.wxType = wxType;
	}

	
	
	@ManyToOne
	@JoinColumn(name="wxuserid")
	public WxUser getWxuser() {
		return wxuser;
	}

	public void setWxuser(WxUser wxuser) {
		this.wxuser = wxuser;
	}
	
	
//	private Integer allcardnum;
//	private Integer yetcardnum;
//	private Integer cardisok;
//	private Integer totalcardnum;
	
}
